<?php

/**
 * Project form.
 *
 * @package    ProdAssistant
 * @subpackage form
 * @author     Paweł Świtalla
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ProjectForm extends BaseProjectForm
{
  public function configure()
  {
    $core = PACore::getInstance();
    $this->useFields(array(
        'name',
        'investor',
        'shortcut',
        'address_id'
    ));
    
    $this->getWidget('name')->setLabel('Nazwa');
    $this->getWidget('investor')->setLabel('Inwestor');
    $this->getWidget('shortcut')->setLabel('Skrót');
    $this->getWidget('address_id')->setLabel('Adres <br /><a onclick="App.loadWindow(\''.$core->generateAppUrl('Core', 'homeGetComponent', true, array('componentModule' => 'ProductionSettings', 'name' => 'manageAddresses', 'handler' => 'refreshLastForm')).'\')" class="active"><img src="/images/icons/add.png" class="middle" height="18" width="18"></a>');
  }
}
